try:
    num1 = 10
    num2 = 0
    res = num1 / num2
    raise ZeroDivisionError("主动触发ZeroDivisionError异常")
except ZeroDivisionError as e:
    print(f"捕获到异常信息->{e}类型->{type(e)}")